package cn.jm.study;

public class year {
	
	public static void main(String[] args) {
		
	}
	
	
	private void ifTest() {
		int s = 50;
		if (s > 0 && s < 50) {

		} else if (s >= 50 && s < 100) {
		} else {
		}
	}

	private boolean ifYeas(int year) {
		return (year % 4 == 0 && year % 100 != 0) || year % 400 == 0;
	}

	private int getMonthDay(int year, int month) {
		if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {
			return 31;
		} else if (month == 4 || month == 6 || month == 9 || month == 11) {

			return 30;
		} else if (month == 2) {
			if (ifYeas(year))
				return 29;
		} else {
			return 28;
		}
		return 0;
	}
}